﻿using System.Collections.Generic;
using System.Linq;
using INSE6260.OnlineBanking.Model.Payee;
using INSE6260.OnlineBanking.Infrastructure;

namespace INSE6260.OnlineBanking.Repository.EF.Repositories
{
    public class PayeeNameRepository : RepositoryBase<PayeeName>, IPayeeNameRepository
    {
        public PayeeNameRepository(IUnitOfWork uow)
            : base(uow)
        {

        }

        public List<PayeeName> GetAllPayeeName()
        {
            return  GetAll().ToList();
        }

        public PayeeName GetPayeeNameById (int payeeNameId)
        {
            return FindByID(payeeNameId);
        }
    }
}
